package com.hospital.hospitalrelay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 支付明细表
 * </p>
 *
 * @author 闫腾腾
 * @since 2020-10-21
 */
@Data
@Accessors(chain = true)
public class Canner extends Model<Canner> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private BigDecimal price;

    private Integer gross;

    private String monad;

    private BigDecimal retail;

    private BigDecimal discount;

    private BigDecimal convert;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
